package com.rxdwdsj.runse.api;

import com.auth0.jwt.interfaces.Claim;
import com.gitee.easyopen.ApiContext;
import com.gitee.easyopen.ApiResult;
import com.gitee.easyopen.annotation.Api;
import com.gitee.easyopen.annotation.ApiService;
import com.gitee.easyopen.auth.OpenUser;
import com.gitee.easyopen.doc.DataType;
import com.gitee.easyopen.doc.annotation.ApiDoc;
import com.gitee.easyopen.doc.annotation.ApiDocField;
import com.gitee.easyopen.doc.annotation.ApiDocMethod;
import com.rxdwdsj.runse.api.param.GoodsParam;
import com.rxdwdsj.runse.api.result.Goods;
import com.rxdwdsj.runse.api.result.GoodsPageVo;
import com.rxdwdsj.runse.entity.DataGt;
import com.rxdwdsj.runse.entity.PointGt;
import com.rxdwdsj.runse.model.PageInfo;
import com.rxdwdsj.runse.service.IDataGtService;
import com.rxdwdsj.runse.service.IPointGtService;
import org.apache.commons.io.IOUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.io.ClassPathResource;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.UnsupportedEncodingException;
import java.math.BigDecimal;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import java.util.concurrent.atomic.AtomicInteger;

/**
 * 业务类
 * 
 * @author tanghc
 *
 */
@ApiService
@ApiDoc(value = "干滩", order = 1)
public class PointGtApi {

    @Autowired
    UserService userService; // 依赖注入
    @Autowired
    IPointGtService dataGtService;
    // 该接口不需要验证
    @Api(name = "pointgt.add")
    //@ApiDocMethod(description="干滩数据接入")
    public String addPointGt(PointGt param) {
        //数据库判重，插入，返回
        System.out.println(param);
        return "hello world";
        //dataGtService.save(param);

    }


}
